package com.example.actearly_revised;

import java.util.HashMap;
import java.util.Map;

import com.example.actearly_revised.JournalObject.JNode;

public class HintObject {

	public Map<Integer, HNode> newMap;
	
	public class HNode{
		public String milestone_in_months;
		public String Hint;
		public int hintId;
		
		public HNode(String milestone, String Hint, int hintID)
		{
			this.milestone_in_months = milestone;
			this.Hint = Hint;
			this.hintId = hintID;  // 0 for urgent, 1 for not urgent
		}
	}
	
	public HintObject(){
		newMap = new HashMap<Integer, HNode>();
	}
	
	public void put(String Milestone_in_Monthes, String Hint, int hintID){
		
		newMap.put(hintID, new HNode(Milestone_in_Monthes, Hint, hintID) );
	}
	
	public HNode get(Integer hintID){
		return newMap.get(hintID);
	}
	
	public int count()
	{
		return newMap.size();
	}
	
	public Map<Integer, HNode> getMap(){
		return newMap;
	}
}
